import { createRouter,createWebHistory } from "vue-router";



const routes = [
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/Login.vue'),
    },
    {
        path:'/',
        component: () => import('../views/Index.vue'),
        redirect:'/student',
        children:[
            { path: '/student', component: () => import('@/views/student/Student.vue') },


        ]
    },
    // { path: '/updatePassword',name: 'updatePassword', component: () => import('../views/user/UpdatePassword.vue') }

]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router